const routers = [
    {
        path: '/',
        meta: {
            title: '欢迎登录'
        },
        component: (resolve) => require(['./views/login.vue'], resolve)
    },
    {
        path: '/login',
        meta: {
            title: '欢迎登录'
        },
        component: (resolve) => require(['./views/login.vue'], resolve)
    },
    {
        path: '/index',
        meta: {
            title: ''
        },
        component: (resolve) => require(['./views/index.vue'], resolve)
    },
    {
        path: '/logistics',
        meta: {
            title: '物流中心'
        },
        children: [
            {
                path: '/home',
                meta: {
                    title: '首页'
                },
                component: resolve => require(['./views/home.vue'], resolve)
            },
            {
                path: '/logistics/logistic',//物流中心
                meta: {
                    title: '物流配送'
                },
                component: resolve => require(['./views/logistics/logistic.vue'], resolve)
            },
            {
                path: '/logistics/cusArchive',//客户档案
                meta: {
                    title: '客户档案'
                },
                component: resolve => require(['./views/logistics/cusArchive.vue'], resolve)
            },
            {
                path: '/logistics/systemContrast',//系统对照
                meta: {
                    title: '系统对照'
                },
                component: resolve => require(['./views/logistics/systemContrast.vue'], resolve)
            },
            {
                path: '/logistics/invoice',//发票管理
                meta: {
                    title: '发票管理'
                },
                component: resolve => require(['./views/logistics/invoice.vue'], resolve)
            },
            {
                path: '/logistics/express',//快递公司
                meta: {
                    title: '快递公司'
                },
                component: resolve => require(['./views/logistics/express.vue'], resolve)
            },
            {
                path: '/logistics/otherOrders',//其他订单
                meta: {
                    title: '其他订单'
                },
                component: resolve => require(['./views/logistics/otherOrders.vue'], resolve)
            },
            {
                path: '/logistics/ShopInquiries',//店铺查询
                meta: {
                    title: '店铺查询'
                },
                component: resolve => require(['./views/logistics/ShopInquiries.vue'], resolve)
            }
        ],
        component: (resolve) => require(['./views/index.vue'], resolve)
    },

];
export default routers;